﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Activo.aspx.cs" Inherits="Formularios_Activo" %>

<%@ Register assembly="obout_Calendar2_Net" namespace="OboutInc.Calendar2" tagprefix="obout" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 150px;
        }
        .style2
        {
            width: 150px;
            height: 21px;
        }
        .style3
        {
            height: 21px;
        }
        .style4
        {
            width: 150px;
            height: 46px;
        }
        .style5
        {
            height: 46px;
        }
    .style6
    {
        width: 150px;
        height: 80px;
    }
    .style7
    {
        height: 80px;
    }
        .style8
        {
            width: 150px;
            height: 45px;
        }
        .style9
        {
            height: 45px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table style="width: 98%;">
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" bgcolor="#536D95" rowspan="2" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: xx-large; font-weight: bold; color: #FFFFFF">
                Registro de Activos</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                <asp:Label ID="lblMensaje" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                <hr />
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                <asp:TextBox ID="txtID" runat="server" Visible="False"></asp:TextBox>
            </td>
            <td align="left" 
                
                style="border-color: #536D95; border-width: thin; border-top-style: solid; border-right-style: solid; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #536D95;">
                Datos Obligatorios</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000;">
                <asp:Label ID="lblBarras" runat="server" Font-Names="BarCode 128"></asp:Label>
                <br />
                Codigo de Barras</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:SqlDataSource ID="sdsSubfamilia" runat="server" 
                    ConnectionString="Data Source=M38;Initial Catalog=ActivosFijos;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT * FROM [tbl_subfamilias]"></asp:SqlDataSource>
            </td>
            <td align="center" class="style3" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:DropDownList ID="ddlSubfamilia" runat="server" 
                    DataSourceID="sdsSubfamilia" DataTextField="snombre" 
                    DataValueField="Isubfamilia_id" Width="150px">
                </asp:DropDownList>
                <br />
                Subfamilia</td>
            <td class="style2">
            </td>
        </tr>
        <tr>
            <td class="style6">
                </td>
            <td align="center" 
                
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid" 
                class="style7">
                <asp:TextBox ID="txtDescripcion" runat="server" Height="60px" 
                    TextMode="MultiLine" Width="250px"></asp:TextBox>
                <br />
                Descripcion</td>
            <td class="style6">
                </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:DropDownList ID="ddlPropiedad" runat="server" Width="150px">
                </asp:DropDownList>
                <br />
                Propiedad</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:TextBox ID="txtFechaCompra" runat="server" Width="200px"></asp:TextBox>
                <obout:Calendar ID="CalendarCompra" runat="server" CultureName="es-ES" 
                    DatePickerImagePath="~/Imagenes/calendario.gif" DatePickerMode="True" 
                    TextBoxId="txtFechaCompra">
                </obout:Calendar>
                <br />
                Fecha de Compra</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:SqlDataSource ID="sdsProveedor" runat="server" 
                    ConnectionString="Data Source=M38;Initial Catalog=ActivosFijos;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT * FROM [tbl_proveedores]"></asp:SqlDataSource>
            </td>
            <td align="center" class="style5" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-style: none solid none solid; border-width: thin; border-color: #536D95">
                <asp:TextBox ID="txtVida" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlProveedor" runat="server" DataSourceID="sdsProveedor" 
                    DataTextField="snombre" DataValueField="Iproveedores_id" Width="150px">
                </asp:DropDownList>
                <br />
                Vida Util&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Proveedor</td>
            <td class="style4">
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:DropDownList ID="ddlEstado" runat="server" Width="150px">
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtMarca" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtModelo" runat="server" Width="150px"></asp:TextBox>
                <br />
                Estado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Marca&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Modelo</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:TextBox ID="txtForma" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtSerial" runat="server" Width="150px"></asp:TextBox>
                <br />
                Forma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Serial</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                <asp:SqlDataSource ID="sdsPersonal" runat="server" 
                    ConnectionString="Data Source=M38;Initial Catalog=ActivosFijos;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT * FROM [tbl_personal]"></asp:SqlDataSource>
            </td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:DropDownList ID="ddlPersonal" runat="server" DataSourceID="sdsPersonal" 
                    DataTextField="snombre" DataValueField="Ipersonal_id" Width="150px">
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlAsignacion" runat="server" Width="150px">
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlAlta" runat="server" Width="150px">
                </asp:DropDownList>
                <br />
&nbsp;Responsable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Asignacion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Alta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:TextBox ID="txtComprobante" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="ddlSeguro" runat="server" Width="150px">
                </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtValor" runat="server" Width="150px"></asp:TextBox>
                <br />
                Comprobante&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Seguro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Valor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                <asp:SqlDataSource ID="sdsPunto" runat="server" 
                    ConnectionString="Data Source=M38;Initial Catalog=ActivosFijos;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [tbl_puntos]">
                </asp:SqlDataSource>
            </td>
            <td align="center" 
                style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000; border-color: #536D95; border-width: thin; border-right-style: solid; border-left-style: solid">
                <asp:DropDownList ID="ddlPunto" runat="server" DataSourceID="sdsPunto" 
                    DataTextField="Ipuntos_id" DataValueField="Ipuntos_id" Width="150px">
                </asp:DropDownList>
                <br />
                Punto</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid">
                <hr />
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                </td>
            <td align="left" 
                
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; color: #536D95; font-weight: bold;" 
                class="style3">
                Datos Opcionales</td>
            <td class="style2">
                </td>
        </tr>
        <tr>
            <td class="style8">
                </td>
            <td align="center" 
                
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000;" 
                class="style9">
                <asp:TextBox ID="txtColor" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtCapacidad" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtMaterial" runat="server" Width="150px"></asp:TextBox>
                <br />
&nbsp;&nbsp; Color&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Capacidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Material</td>
            <td class="style8">
                </td>
        </tr>
        <tr>
            <td class="style2">
                </td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000;" 
                class="style3">
                <asp:TextBox ID="txtAlto" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtLargo" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtAncho" runat="server" Width="150px"></asp:TextBox>
                <br />
                Alto&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                L argo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Ancho</td>
            <td class="style2">
                </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000;">
                <asp:TextBox ID="txtDiametro" runat="server" Width="150px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtDivisiones" runat="server" Width="150px"></asp:TextBox>
                <br />
                Diametro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                Divisiones</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                </td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid" 
                class="style3">
                <hr />
            </td>
            <td class="style2">
                </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #536D95;" 
                class="style3">
                Datos Opcionales De Baja</td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #000000;" 
                class="style3">
                <asp:TextBox ID="txtFechaBaja" runat="server" Width="150px"></asp:TextBox>
                <obout:Calendar ID="CalendarBaja" runat="server" CultureName="es-ES" 
                    DatePickerImagePath="~/Imagenes/calendario.gif" DatePickerMode="True" 
                    TextBoxId="txtFechaBaja">
                </obout:Calendar>
                <br />
                Fecha de Baja</td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid; color: #000000; font-weight: bold; font-family: Arial, Helvetica, sans-serif;" 
                class="style3">
                <asp:TextBox ID="txtMotivoBaja" runat="server" Height="60px" 
                    TextMode="MultiLine" Width="250px"></asp:TextBox>
                <br />
                Motivo</td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                </td>
            <td align="center" 
                
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid" 
                class="style3">
                </td>
            <td class="style2">
                </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: none; border-left-style: solid">
                <asp:LoginView ID="LoginView2" runat="server">
                    <RoleGroups>
                        <asp:RoleGroup Roles="Administrador">
                            <ContentTemplate>
                                <asp:Button ID="btnRegistrar" runat="server" Text="Registrar" 
                                    onclick="btnRegistrar_Click" />
                            </ContentTemplate>
                        </asp:RoleGroup>
                    </RoleGroups>
                </asp:LoginView>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:LoginView ID="LoginView1" runat="server">
                    <RoleGroups>
                        <asp:RoleGroup Roles="Administrador">
                            <ContentTemplate>
                                <asp:Button ID="btnModificar" runat="server" Text="Modificar" 
                                    onclick="btnModificar_Click" />
                            </ContentTemplate>
                        </asp:RoleGroup>
                    </RoleGroups>
                </asp:LoginView>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center" 
                style="border-color: #536D95; border-width: thin; border-right-style: solid; border-bottom-style: solid; border-left-style: solid">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                <asp:GridView ID="grvActivos" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" ShowHeaderWhenEmpty="True" ViewStateMode="Enabled" 
                    Caption="Lista Activos" onrowcommand="grvActivos_RowCommand">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="Codigo" HeaderText="Codigo">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Codigo" HeaderText="Cod. SubFamilia">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Vidautil" HeaderText="Vida Util">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Codigodebarras" HeaderText="Cod. de Barras">
                        <ControlStyle Font-Names="BarCode 128" />
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" 
                            Font-Names="BarCode 128" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Codigo" HeaderText="Cod. Responsable">
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Seleccionar">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemTemplate>
                                <asp:ImageButton CommandName="Seleccionar" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"codigo") %>' runat="server" ID="Edit" ImageUrl='~/Imagenes/Seleccionar.png' />
			                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Eliminar">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemTemplate>
                                    <asp:ImageButton CommandName="Eliminar" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"codigo") %>' runat="server" ID="Delete" ImageUrl='~/Imagenes/Eliminar.png' />
			                </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td align="center">
                &nbsp;</td>
            <td class="style1">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

